package cn.exrick.xboot.shop.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuhaifei
 * @since 2021-12-28
 */
@Data
@TableName("shop_swiper")
@ApiModel(value = "")
public class ShopSwiper implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         *
         */
        @TableId(value = "id",type = IdType.AUTO)
        @TableField(value = "id")
        @ApiModelProperty(value = "")
        private Integer id;

        /**
         * 标题
         */
        @TableField(value = "title")
        @ApiModelProperty(value = "标题")
        private String title;

        /**
         * 封面
         */
        @TableField(value = "cover")
        @ApiModelProperty(value = "封面")
        private String cover;

        /**
         * 内容
         */
        @TableField(value = "content")
        @ApiModelProperty(value = "内容")
        private String content;

        /**
         * 排序
         */
        @TableField(value = "dsort")
        @ApiModelProperty(value = "排序")
        private Integer dsort;

        /**
         * 是否首页显示
         */
        @TableField(value = "can_show")
        @ApiModelProperty(value = "是否首页显示")
        private Boolean canShow;

        /**
         * 类型
         */
        @TableField(value = "type")
        @ApiModelProperty(value = "类型")
        private String type;

        /**
         * 创建人
         */
        @TableField(value = "create_by")
        @ApiModelProperty(value = "创建人")
        private String createBy;

        /**
         * 创建时间
         */
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @TableField(value = "create_time")
        @ApiModelProperty(value = "创建时间")
        private Date createTime;

}
